<div class="mainbody"><!--MainBody-->

<div class="main_container"><!--MainContainer-->
<?php
	include "templates/sitemap.php"; 
?>
<!--SiteMap-->
<div class="col-main"><!--ColMain-->
<div class="wrap">
<?php
	$dealers = $dealer->listall();
	$list = $city->listbydealer();
	for($i=0;$i<count($list);$i++)
	{
?>
<ul class="tintuc"><?=$list[$i]["name"]?>
	<?php
//		$dealer->setcity($list[$i]["code"]);		
		for ($j=0;$j<count($dealers);$j++) {
			if ($dealers[$j]["city"] == $list[$i]["code"]) {			
	?>
	<li><h4><?=$dealers[$j]["title"]?></h4>
		<ul>
			<li> - Address: <?=$dealers[$j]["address"]?></li>
			<li> - Phone: <?=$dealers[$j]["phone"]?></li>
		</ul>
	</li>
	<?php
			}
		}
	?>
</ul>
<?php
	} 
?>
</div>

<a href="#">
<div class="freeship"></div>
</a></div>
<!--ColMain-->

<div class="col-right"><!--ColRight--> <!--Dacbiet-->
<div class="livehelp_right"><!--LiveHelpRight-->
                    <?php
						include "templates/right.php";
						include "templates/support.php";
					?>
                </div>
<!--LiveHelpRight--> <a href="#">
<div class="saleoff"></div>
</a></div>
<!--ColRight-->

<div class="add-on"></div>
</div>
<!--MainContainer--></div>